package com.cjh.shixun.controller;

import com.cjh.shixun.domain.Account;
import com.cjh.shixun.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    AccountService accountService;

    @GetMapping("/finad")
    public Account finad(){

        return  accountService.getById(1);


    }
}
